import { DictData } from "../api/system/dict.d";

export const getDictValueEnum = (dictData: DictData[]) => {
  const valueEnum: Record<string, string> = {};
  dictData.map((item) => {
    valueEnum[item.dictValue] = item.dictLabel;
  });
  return valueEnum;
};
